package com.mine.service;

import java.util.List;

import com.mine.pojo.MineOrder;
import com.mine.result.Result;
import com.mine.vo.OrderVo;

public interface OrderService {

	Result list(String token);

	//创建订单
	Result saveOrder(String token, OrderVo orderVo);

	//查询订单列表
	Result selectOrderList(String type, String token);

	//查询订单详情
	Result selectOrderDetail(String orderId, String token);

	//创建多个订单
	Result saveOrder(String token, List<OrderVo> list);

	//分页查询订单列表
	Result selectOrderList(Integer type, String token, Integer size, Integer page);

	//买家取消订单
	Result modifyOrderCancel(MineOrder order, String token);

	//买家支付订单
	Result modifyOrderPay(String orderId, String token);

	//商家(卖家)接单
	Result modifyOrderSellerTakingOrder(String orderId, String token);

	//商家已经发货
	Result modifyOrderSellerConsign(MineOrder order, String token);

	//商家确认送达订单，已经完成订单
	Result modifyOrderSellerCompleteOrder(String orderId, String token);

	//买家确认送达(完成订单/或货到付款去支付)
	Result modifyOrderArrived(String orderId, String token);

	//商家取消订单
	Result modifySellerCancelOrder(MineOrder order, String token);

	//货到付款：商家确认用户已经支付
	Result modifyOrderSellerCompleteCODOrder(String orderId, String token);

	//商家查询订单
	Result selectSellerOrderList(Integer type, String token, Integer size, Integer page);

}
